<%@page import="org.yate.oa.model.LoginEntity"%>
<%@page import="java.text.SimpleDateFormat, java.util.Date"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<c:set value="${pageContext.request.contextPath}" var="ctx" />
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>产品列表</title>
<link href="${ctx}/css/skin.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css" href="${ctx}/css/multiselect/jquery.multiselect.css" />
<link rel="stylesheet" type="text/css" href="${ctx}/css/multiselect/prettify.css" />
<link rel="stylesheet" type="text/css" href="${ctx}/css/multiselect/jquery-ui.min.css" />
<script type="text/javascript" src="${ctx}/js/jquery.js"></script>
<script type="text/javascript" src="${ctx}/js/backOffice.js"></script>
<script type="text/javascript" src="${ctx}/css/multiselect/jquery.ui.core.js"></script>
<script type="text/javascript" src="${ctx}/css/multiselect/jquery.ui.widget.js"></script>
<script type="text/javascript" src="${ctx}/css/multiselect/jquery.multiselect.js"></script>
<script type="text/javascript">
$(function(){
    $("#kva").multiselect({
        noneSelectedText: "==请选择==",
        checkAllText: "全选",
        uncheckAllText: '全不选',
        selectedList:15
    });
    
});

function checkForm(){
	if($("#kva").val()==null){
		alert('请选择容量');
		return;
	}
	addForm.submit();
}

function boxNumChange(t){
	//单相
	if($(t).val()==0){
		$('#type').html('<option value="0">塑壳断路器</option><option value="1">框架断路器</option>');
	}else if($(t).val()==1){
		$('#type').html('<option value="0">塑壳断路器</option><option value="1">框架断路器</option><option value="2">微型断路器</option>');
	}
}
</script>
</head>
<body>
	<table width="100%" border="0" cellpadding="0" cellspacing="0">
		<tr>
			<td width="17" height="29" valign="top"
				background="${ctx}/images/mail_leftbg.gif"><img
				src="${ctx}/images/left-top-right.gif" width="17" height="29" /></td>
			<td width="" height="29" valign="top"
				background="${ctx}/images/content-bg.gif"><table width="100%"
					height="31" border="0" cellpadding="0" cellspacing="0"
					class="left_topbg" id="table2">
					<tr>
						<td height="31"><div class="titlebt">更新产品</div></td>
					</tr>
				</table></td>
			<td width="16" valign="top"
				background="${ctx}/images/mail_rightbg.gif"><img
				src="${ctx}/images/nav-right-bg.gif" width="16" height="29" /></td>
		</tr>
		<tr>
			<td height="71" valign="middle"
				background="${ctx}/images/mail_leftbg.gif">&nbsp;</td>
			<td valign="top" bgcolor="#F7F8F9"><table width="100%"
					height="138" border="0" cellpadding="0" cellspacing="0">
					<tr>
						<td height="13" valign="top">&nbsp;</td>
					</tr>
					<tr>
						<td valign="top">
							<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
								<tr>
									<td class="left_txt">当前位置：断路器 > 创建产品</td>
								</tr>
								<tr>
									<td height="20">
										<table width="100%" height="1" border="0" cellpadding="0" cellspacing="0" bgcolor="#CCCCCC">
											<tr>
												<td></td>
											</tr>
										</table>
									</td>
								</tr>
								<tr>
									<td width="100%" valign="top"
										style="min-height: 350px; height: 350px;">
										<form action="${ctx}/lyq/page/add.html" method="post" name="addForm">
											<table class="tblBill" cellpadding="0" cellspacing="0">
												<tr>
													<td width="10%">容量(KVA)：</td>
													<td>
														<select id ="kva" name="kva" title="Basic example" multiple="multiple">
															<option value="50">50</option>
															<option value="80">80</option>
															<option value="100">100</option>
															<option value="125">125</option>
															<option value="160">160</option>
															<option value="200">200</option>
															<option value="250">250</option>
															<option value="315">315</option>
															<option value="400">400</option>
															<option value="500">500</option>
															<option value="630">630</option>
															<option value="800">800</option>
															<option value="1000">1000</option>
															<option value="其他">其他</option>
														</select>
													</td>
												</tr>
												<tr>
													<td>相数：</td>
													<td>
														<select name="boxNum" id="boxNum" onchange="boxNumChange(this);">
															<option value="1">三相</option>
															<option value="0">单相</option>
														</select>
													</td>
												</tr>
												<tr>
													<td align="right">低压开关柜类型：</td>
													<td>
														<select name="lowOCConf" id="lowOCConf">
															<option value="0">低压计量及进线柜</option>
															<option value="1">低压出线柜</option>
															<option value="2">电容补偿柜</option>
															<option value="3">低压联络柜</option>
															<option value="4">无</option>
														</select>
													</td>
												</tr>
												<tr>
													<td align="right">类型：</td>
													<td>
														<select name="type" id="type">
															<option value="0">塑壳断路器</option>
															<option value="1">框架断路器</option>
															<option value="2">微型断路器</option>
															<option value="3">无</option>
														</select>
													</td>
												</tr>
												<tr>
													<td>出线回路</td>
													<td>
														<select name="lowOutline" id="lowOutline">
															<option value="0">3路出线</option>
															<option value="1">4路出线</option>
															<option value="2">5路出线</option>
															<option value="3">6路出线</option>
															<option value="4">7路出线</option>
															<option value="5">10路出线</option>
															<option value="6">12路出线</option>
															<option value="7">3路控制出线</option>
															<option value="8">4路控制出线</option>
															<option value="9">5路控制出线</option>
															<option value="10">6路控制出线</option>
															<option value="11">7路控制出线</option>
															<option value="12">12路控制出线</option>
															<option value="13">18路控制出线</option>
															<option value="14">21路控制出线</option>
															<option value="15">7路控制出线+4路出线</option>
															<option value="16">7路控制出线+7路出线</option>
															<option value="17">14路控制出线+14路出线</option>
															<option value="18">无</option>
														</select>
													</td>
												</tr>
												<tr>
													<td>品牌</td>
													<td>
														<select name="brand" id="brand">
															<option value="0">ABB</option>
															<option value="1">施耐德</option>
															<option value="2">常熟开关厂</option>
															<option value="3">上海人民电器</option>
															<option value="4">正泰电器</option>
															<option value="5">无</option>
														</select>
													</td>
												</tr>
												<tr>
													<td>电流</td>
													<td>
														<select name="electricCurrent" id="electricCurrent">
															<option value="0">16A</option>
															<option value="1">25A</option>
															<option value="2">40A</option>
															<option value="3">50A</option>
															<option value="4">63A</option>
															<option value="5">80A</option>
															<option value="6">125A</option>
															<option value="7">160A</option>
															<option value="8">200A</option>
															<option value="9">250A</option>
															<option value="10">315A</option>
															<option value="11">400A</option>
															<option value="12">500A</option>
															<option value="13">630A</option>
															<option value="14">800A</option>
															<option value="15">1000A</option>
															<option value="16">1250A</option>
															<option value="17">1600A</option>
															<option value="18">100A</option>
															<option value="19">无</option>
														</select>
													</td>
												</tr>
												<tr>
													<td>脱扣器类型</td>
													<td>
														<select name="tkqType" id="tkqType">
															<option value="0">热磁脱扣器型</option>
															<option value="1">电子脱扣器型</option>
															<option value="2">无</option>
														</select>
													</td>
												</tr>
												<tr>
													<td>数量：</td>
													<td><input type="text" name="num" id="num"/></td>
												</tr>
												<tr>
													<td>配置数据：</td>
													<td><textarea tabindex='7' name="detail" id="ta_qa_content" style="width:720px;"></textarea></td>
												</tr>
												<tr>
													<td>
														<input type="hidden" name="submitType" value="modify" />
														<input type="hidden" name="id" id="id"/>
													</td>
													<td><input type="button" value="确定 " onclick="checkForm()"/> <input type="button" value="取消 "
														onclick="javascript:location.href='${ctx}/jsp/duanluqi/list.jsp'" /></td>
												</tr>
											</table>
										</form>
									</td>
								</tr>
							</table>
						</td>
					</tr>
				</table></td>
			<td background="${ctx}/images/mail_rightbg.gif">&nbsp;</td>
		</tr>
		<tr>
			<td valign="middle" background="${ctx}/images/mail_leftbg.gif"><img
				src="${ctx}/images/buttom_left2.gif" width="17" height="17" /></td>
			<td height="17" valign="top"
				background="${ctx}/images/buttom_bgs.gif"><img
				src="${ctx}/images/buttom_bgs.gif" width="17" height="17" /></td>
			<td background="${ctx}/images/mail_rightbg.gif"><img
				src="${ctx}/images/buttom_right2.gif" width="16" height="17" /></td>
		</tr>
	</table>
</body>
</html>